import request from '@/utils/request'

// 查询车辆过户列表
export function listTransfer(query) {
  return request({
    url: '/car/transfer/list',
    method: 'get',
    params: query
  })
}

// 查询车辆过户详细
export function getTransfer(id) {
  return request({
    url: '/car/transfer/' + id,
    method: 'get'
  })
}

// 新增车辆过户
export function addTransfer(data) {
  return request({
    url: '/car/transfer',
    method: 'post',
    data: data
  })
}

// 修改车辆过户
export function updateTransfer(data) {
  return request({
    url: '/car/transfer',
    method: 'put',
    data: data
  })
}

// 删除车辆过户
export function delTransfer(id) {
  return request({
    url: '/car/transfer/' + id,
    method: 'delete'
  })
}

// 导出车辆过户
export function exportTransfer(query) {
  return request({
    url: '/car/transfer/export',
    method: 'get',
    params: query
  })
}

// 新增车辆过户
export function doSl(id) {
  return request({
    url: '/car/transfer/sl/' + id,
    method: 'post',
  })
}

// 新增车辆过户
export function doWj(id) {
  return request({
    url: '/car/transfer/wj/' + id,
    method: 'post',
  })
}
